dispatchHoverEvent

fun dispatchHoverEvent(@NonNull event: @NonNull MotionEvent): Boolean(source)

Delegates hover events from the host view.

Dispatches hover MotionEvents to the virtual view hierarchy when the Explore by Touch feature is enabled.

This method should be called by overriding the host view's dispatchHoverEvent method:

@Override
public boolean dispatchHoverEvent(MotionEvent event) {
  return mHelper.dispatchHoverEvent(this, event)
      || super.dispatchHoverEvent(event);
}

Return

Whether the hover event was handled.

Parameters

event

The hover event to dispatch to the virtual view hierarchy.